package com.sup.generator.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

/**
 * @author Zh
 * @version v1.0
 * @description: 设置默认的值
 * @date 2020/11/13 17:38
 */
@Component
@Aspect
public class SaveDefaultValueAspect {

    @Pointcut("execution(* com.sup.generator.service.*.save(..))")
    public void pointCut(){}


    @Around("pointCut()")
    public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
        Object[] args = joinPoint.getArgs();
        Object object = joinPoint.proceed(args);
         return object;
    }
}
